计算机与现代化 ›› 2009, Vol. 1 ›› Issue (10): 38-3.doi: 10.3969/j.issn.1006-2475.2009.10.011

• 数据库 • 上一篇    下一篇

数据库动态生成表在Hibernate中映射问题的研究与解决

姚振宇   

  1. 同济大学电子与信息工程学院计算机科学与技术系,上海 201804
  • 收稿日期:2009-04-14 修回日期:1900-01-01 出版日期:2009-10-15 发布日期:2009-10-15

Research and Solution of Database Table Generated Dynamically Mapping in Hibernate

YAO Zhen-yu   

  1. Dept. of Computer Science and Technology, College of Electronics and Engineering, Tongji University, Shanghai 201804, China
  • Received:2009-04-14 Revised:1900-01-01 Online:2009-10-15 Published:2009-10-15

摘要:

在Struts+Hibernate框架下设计并实现一个服务器日志管理系统。通过将SQL语句与Hibernate结合解决数据库动态生成表在框架中的映射问题,从而使系统管理更加便捷,更加便于扩展,效率也有很大提高。

关键词: Struts, Hibernate, 数据库, 动态

Abstract:

A server log management system is been designed based on the Struts+Hibernate framework. The problem that how Hibernate maps tables are generated dynamically in database to objects is been solved bycombining SQL sentence to Hibernate. The system is easier to manage and to enlarge, and the efficiency is improved.

Key words: Struts, Hibernate, database, dynamically